/********************************************************/
/*	Copyright (C) 2016 Gong Li Bin			*/
/*	Project:	GlbCloud			*/
/*	Author:		gong_libin			*/
/*	Date:		2012_03_30			*/
/*	File:		MrDb.h				*/
/********************************************************/

#ifndef	_MRDB_H
#define	_MRDB_H

#include "MrTcp.h"
#include "MrPro.h"
#include "MrUtl.h"

#define	MR_DB_SEC			1

class CMrDb
{
public:
	CMrDb();
	virtual ~CMrDb();

	void MrDbClose();
	int MrDbRecv(MRPROKV_S* pstKv);
	int MrDbSend(UCHAR ucVerb, char* pszSql);
	int MrDbConnect(char* pszAddr, char* pszPort);

private:
	CMrTcp m_CTcp;

};

#endif /* _MRDB_H */
